<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>车队费用管理</title>
	<meta name="decorator" content="ani"/>
	<script type="text/javascript">
		var validateForm;
		var $table; // 父页面table表格id
		var $topIndex;//弹出窗口的 index
		function doSubmit(table, index){//回调函数，在编辑和保存动作时，供openDialog调用提交表单。
            var a=$("#maintainCost").val();
            var b=$("#refuelingCharge").val();
            var c=$("#ditchCost").val();
            var d=$("#putupCost").val();
            var e=$("#otherExpenses").val();
            var f=$("#tyreCost").val();
            if(a==""&b==""&c==""&d==""&e==""&f==""){
                jp.error("请至少维护一项费用!");
                return;
            }
		  if(validateForm.form()){
			  $table = table;
			  $topIndex = index;
			  jp.loading();
			  $("#inputForm").submit();
			  return true;
		  }

		  return false;
		}

		$(document).ready(function() {
			validateForm = $("#inputForm").validate({
				submitHandler: function(form){
					jp.post("${ctx}/fleet/motorcadeCost/save",$('#inputForm').serialize(),function(data){
						if(data.success){
	                    	$table.bootstrapTable('refresh');
	                    	jp.success(data.msg);
	                    	jp.close($topIndex);//关闭dialog

	                    }else{
            	  			jp.error(data.msg);
	                    }
					})
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
			
	        $('#date').datetimepicker({
				 format: "YYYY-MM-DD HH:00"
		    });
		});
		function show() {
			$("#addMaintainCost").modal("show");
        }
        function show1() {
            $("#addRefuelingCharge").modal("show");
        }
        function show2() {
            $("#addDitchCost").modal("show");
        }
        function show3() {
            $("#addPutupCost").modal("show");
        }
        function show4() {
            $("#addOtherExpenses").modal("show");
        }
        function show5() {
            $("#addTryeCost").modal("show");
        }
        function show6() {
            $("#addprotectCost").modal("show");
        }
        function show7() {
            $("#addlossCost").modal("show");
        }
        function show8() {
            $("#addmaiCost").modal("show");
        }
        function show9() {
            $("#addfineCost").modal("show");
        }
        function addTryeCost() {
			var pp=$("#pp").val();
            var xh=$("#xh").val();
            var wz=$("#wz").val();
            var sl=$("#sl").val();
            var je=$("#je").val();
            var lx=$("#lx").val();
            var yy=$("#yy").val();
            var ff=$("#ff").val();
            var wxc=$("#wxc").val();
            var pjlx=$("#pjlx").val();
            var zffs=$("#zffs").val();
            var jbr=$("#jbr").val();
            var remarks=$("#remark").val();
            $.ajax({
				url:'${ctx}/fleet/tyreCost/saveObj?pp='+pp+'&xh='+xh+'&wz='+wz+'&sl='+sl+'&je='+je+'&lx='+lx+'&yy='+yy+'&ff='+ff+'&wxc='+wxc+'&pjlx='+pjlx+'&zffs='+zffs+'&jbr='+jbr+'&remarks='+remarks,
				success:function (data) {
                    jp.success("保存成功");
					$("#addTryeCost").modal("hide");
					var a=$("#tryeCost").val();
					$("#tryeCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>轮胎费</td>")
                    addTr.append("<td>"+je+"</td>")
                },
				error:function (e) {
                    jp.error(e);
                }
			})

        }
        function addMaintainCost() {
            var accident=$("#accident").val();
            var cause=$("#cause").val();
            var solution=$("#solution").val();
            var partsType=$("#partsType").val();
            var partsName=$("#partsName").val();
            var partsModel=$("#partsModel").val();
            var quantity=$("#quantity").val();
            var money=$("#money").val();
            var flowDirection=$("#flowDirection").val();
            var maintenanceShop=$("#maintenanceShop").val();
            var billType=$("#billType").val();
            var paymentMethod=$("#paymentMethod").val();
            var responsiblePerson=$("#responsiblePerson").val();
            $.ajax({
                url:'${ctx}/fleet/maintainCost/saveObj?accident='+accident+'&cause='+cause+'&solution='+solution+'&partsType='+partsType+'&partsName='+partsName+'&partsModel='+partsModel+'&quantity='+quantity+'&money='+money+'&flowDirection='+flowDirection+'&maintenanceShop='+maintenanceShop+'&billType='+billType+'&paymentMethod='+paymentMethod+'&responsiblePerson='+responsiblePerson,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addMaintainCost").modal("hide");
                    var a=$("#maintainCost").val();
                    $("#maintainCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>维修费</td>")
                    addTr.append("<td>"+money+"</td>")
                },
                error:function (e) {
                    jp.error(e);
                }
            })

        }
        function addRefuelingCharge() {
            var oilsTyp=$("#oilsTyp").val();
            var price=$("#price").val();
            var refuelSite=$("#refuelSite").val();
            var quantity=$("#quantity1").val();
            var money=$("#money1").val();
            var billType=$("#billType1").val();
            var paymentMethod=$("#paymentMethod1").val();
            var remarks=$("#remarks1").val();
            $.ajax({
                url:'${ctx}/fleet/refuelingCharge/saveObj?oilsTyp='+oilsTyp+'&price='+price+'&refuelSite='+refuelSite+'&quantity='+quantity+'&money='+money+'&billType='+billType+'&paymentMethod='+paymentMethod+'&responsiblePerson='+responsiblePerson+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addRefuelingCharge").modal("hide");
                    var a=$("#refuelingCharge").val();
                    $("#refuelingCharge").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>加油费</td>")
                    addTr.append("<td>"+money+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addDitchCost() {
            var practicalRange=$("#practicalRange").val();
            var tollStation=$("#tollStation").val();
            var money=$("#money2").val();
            var remarks=$("#remarks2").val();
            $.ajax({
                url:'${ctx}/fleet/ditchCost/saveObj?practicalRange='+practicalRange+'&tollStation='+tollStation+'&money='+money+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addDitchCost").modal("hide");
                    var a=$("#ditchCost").val();
                    $("#ditchCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>路桥费</td>")
                    addTr.append("<td>"+money+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addPutupCost() {
            var site=$("#site").val();
            var money=$("#money3").val();
            var billType=$("#billType3").val();
            var remarks=$("#remarks3").val();
            $.ajax({
                url:'${ctx}/fleet/putupCost/saveObj?site='+site+'&money='+money+'&billType='+billType+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addPutupCost").modal("hide");
                    var a=$("#putupCost").val();
                    $("#putupCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>住宿费</td>")
                    addTr.append("<td>"+money+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addOtherExpenses() {
            var site=$("#site4").val();
            var money=$("#money4").val();
            var billType=$("#billType4").val();
            var remarks=$("#remarks4").val();
            $.ajax({
                url:'${ctx}/fleet/otherExpenses/saveObj?site='+site+'&money='+money+'&billType='+billType+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addOtherExpenses").modal("hide");
                    var a=$("#otherExpenses").val();
                    $("#otherExpenses").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>其它费用 </td>")
                    addTr.append("<td>"+money+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addprotectCost() {
            var name=$("#name").val();
            var num=$("#num").val();
            var sigle=$("#sigle").val();
            var mo=$("#mo").val();
            var pj=$("#pj").val();
            var zf=$("#zf").val();
            var jb=$("#jb").val();
            var remarks=$("#remarks7").val();
            $.ajax({
                url:'${ctx}/fleet/protectCost/saveObj?name='+name+'&num='+num+'&sigle='+sigle+'&mo='+mo+'&pj='+pj+'&zf='+zf+'&jb='+jb+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addprotectCost").modal("hide");
                    var a=$("#protectCost").val();
                    $("#protectCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>防护费</td>")
                    addTr.append("<td>"+mo+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addlossCost() {
            var cpmc=$("#cpmc").val();
            var zsl=$("#zsl").val();
            var dj=$("#dj").val();
            var zje=$("#zje").val();
            var shms=$("#shms").val();
            var shyy=$("#shyy").val();
            var jjff=$("#jjff").val();
            var colx=$("#colx").val();
            var lx=$("#lx6").val();
            var fs=$("#fs").val();
            var person=$("#person").val();
            var remarks=$("#remarks6").val();
            $.ajax({
                url:'${ctx}/fleet/lossCost/saveObj?cpmc='+cpmc+'&zsl='+zsl+'&dj='+dj+'&zje='+zje+'&shms='+shms+'&shyy='+shyy+'&jjff='+jjff+'&colx='+colx+'&lx='+lx+'&fs='+fs+'&person='+person+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addlossCost").modal("hide");
                    var a=$("#lossCost").val();
                    $("#lossCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>货物损耗 </td>")
                    addTr.append("<td>"+zje+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addmaiCost() {
            var byms=$("#byms").val();
            var yy=$("#yy9").val();
            var bybj=$("#bybj").val();
            var byje=$("#byje").val();
            var bygc=$("#bygc").val();
            var pjlx=$("#pj9").val();
            var zffs=$("#zf9").val();
            var jbr=$("#jbr9").val();
            var remarks=$("#remarks9").val();
            $.ajax({
                url:'${ctx}/fleet/maiCost/saveObj?byms='+byms+'&yy='+yy+'&bybj='+bybj+'&byje='+byje+'&bygc='+bygc+'&pjlx='+pjlx+'&zffs='+zffs+'&jbr='+jbr+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addmaiCost").modal("hide");
                    var a=$("#maiCost").val();
                    $("#maiCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>日常保养</td>")
                    addTr.append("<td>"+byje+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
        function addfineCost() {
            var fklx=$("#fklx").val();
            var fkje=$("#fkje").val();
            var yy=$("#yy8").val();
            var zffs=$("#zf8").val();
            var pjlx=$("#pj8").val();
            var remarks=$("#remarks8").val();
            $.ajax({
                url:'${ctx}/fleet/fineCost/saveObj?fklx='+fklx+'&fkje='+fkje+'&yy='+yy+'&zffs='+zffs+'&pjlx='+pjlx+'&remarks='+remarks,
                success:function (data) {
                    jp.success("保存成功");
                    $("#addfineCost").modal("hide");
                    var a=$("#fineCost").val();
                    $("#fineCost").val(a+data+",");
                    var addTr = $("<tr></tr>");
                    addTr.appendTo("#datil");
                    addTr.append("<td>罚款及其它 </td>")
                    addTr.append("<td>"+fkje+"</td>")
                },
                error:function (e) {
                    alert(e);
                }
            })

        }
	</script>
</head>
<body class="bg-white">
		<form:form id="inputForm" modelAttribute="motorcadeCost" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
			<input type="hidden" name="tyreCost" id="tryeCost" value="">
			<input type="hidden" name="maintainCost" id="maintainCost" value="">
			<input type="hidden" name="refuelingCharge" id="refuelingCharge" value="">
			<input type="hidden" name="ditchCost" id="ditchCost" value="">
			<input type="hidden" name="putupCost" id="putupCost" value="">
			<input type="hidden" name="otherExpenses" id="otherExpenses" value="">
			<input type="hidden" name="protectCost" id="protectCost" value="">
			<input type="hidden" name="lossCost" id="lossCost" value="">
			<input type="hidden" name="fineCost" id="fineCost" value="">
			<input type="hidden" name="maiCost" id="maiCost" value="">
		<table class="table table-bordered">
		   <tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">车牌号：</label></td>
					<td class="width-35">
						<sys:gridselect url="${ctx}/fleet/vehicleInformation/data" id="vehicleInformation" name="vehicleInformation.id" value="${motorcadeCost.vehicleInformation.id}" labelName="vehicleInformation.license" labelValue="${motorcadeCost.vehicleInformation.license}"
										title="车牌号选择" cssClass="form-control required" fieldLabels="名称" fieldKeys="license" searchLabels="名称" searchKeys="license" ></sys:gridselect>
					</td>
					<td class="width-15 active"><label class="pull-right">车挂号：</label></td>
					<td class="width-35">
						<sys:gridselect url="${ctx}/fleet/vehicleInformation/data" id="carRegistration" name="carRegistration.id" value="${motorcadeCost.carRegistration.id}" labelName="carRegistration.license" labelValue="${motorcadeCost.carRegistration.license}"
										title="车挂号选择" cssClass="form-control required" fieldLabels="名称" fieldKeys="license" searchLabels="名称" searchKeys="license" ></sys:gridselect>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">司机：</label></td>
					<td class="width-35">
						<form:input path="driver" htmlEscape="false"    class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">日期：</label></td>
					<td class="width-35">
						<p class="input-group">
							<div class='input-group form_datetime' id='date'>
			                    <input type='text'  name="date" class="form-control"  value="<fmt:formatDate value="${motorcadeCost.date}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
			                    <span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
			                </div>
			            </p>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">费用类型：</label></td>
					<td class="width-35">
						<form:input path="disbursementType" readonly="true" htmlEscape="false"     class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">费用：</label></td>
					<td class="width-35">
						<form:input path="cost" htmlEscape="false" readonly="true"   class="form-control "/>
					</td>
				</tr>

		 	</tbody>
		</table>
	</form:form>
		<div <c:if test="${motorcadeCost.id!=''&&motorcadeCost.id!=null}">hidden="hidden"</c:if> style="height: 40px">
	<input type="button" class="btn-bordered" onclick="show()" value="维修费"/>
	<input type="button" class="btn-bordered" onclick="show1()" value="加油费"/>
	<input type="button" class="btn-bordered" onclick="show2()" value="路桥费"/>
	<input type="button"  class="btn-bordered" onclick="show3()" value="住宿费"/>
	<input type="button" class="btn-bordered" onclick="show5()" value="轮胎费用"/>
			<input type="button"  class="btn-bordered" onclick="show6()" value="防护费"/>
			<input type="button" class="btn-bordered" onclick="show7()" value="产品损耗"/>
			<input type="button"  class="btn-bordered" onclick="show8()" value="日常保养"/>
			<input type="button" class="btn-bordered" onclick="show9()" value="罚款及其它"/>
			<input type="button" class="btn-bordered" onclick="show4()" value="其它费用"/>
			<div style="height:20px;"></div>
			<div>
				<table class="table table-bordered">
					<thead>
					<tr><th colspan="2" style="text-align: center">费用明细</th></tr>
					<tr>
						<th width="50%">类别</th>
						<th width="50%">费用</th>
					</tr>
					</thead>
					<tbody id="datil">

					</tbody>
				</table>

			</div>
</div>
		<div <c:if test="${motorcadeCost.disbursementType!='轮胎费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">轮胎费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>

					<td class="width-15 active"><label class="pull-right">品牌：</label></td>
					<td class="width-35">
						${tyreCost.pp}
					</td>
					<td class="width-15 active"><label class="pull-right">轮胎型号：</label></td>
					<td class="width-35">
						${tyreCost.xh}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">位置：</label></td>
					<td class="width-35">
						${tyreCost.wz}
					</td>
					<td class="width-15 active"><label class="pull-right">数量：</label></td>
					<td class="width-35">
						${tyreCost.sl}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">金额：</label></td>
					<td class="width-35">
						${tyreCost.je}
					</td>
					<td class="width-15 active"><label class="pull-right">旧轮胎流向：</label></td>
					<td class="width-35">
						${tyreCost.lx}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">故障原因</label></td>
					<td class="width-35">
						${tyreCost.yy}
					</td>
					<td class="width-15 active"><label class="pull-right">处理方法：</label></td>
					<td class="width-35">
						${tyreCost.ff}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">维修厂：</label></td>
					<td class="width-35">
						${tyreCost.wxc}
					</td>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${tyreCost.pjlx}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${tyreCost.zffs}
					</td>
					<td class="width-15 active"><label class="pull-right">经办人：</label></td>
					<td class="width-35">
						${tyreCost.jbr}
					</td>
				</tr>
				<tr>

					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						${maintainCost.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='维修费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">维修费详情</div>
		<table class="table table-bordered">
			<tbody>
			<tr>
				<td class="width-15 active"><label class="pull-right">故障描述：</label></td>
				<td class="width-35">
					${maintainCost.accident}
				</td>
				<td class="width-15 active"><label class="pull-right">原因：</label></td>
				<td class="width-35">
					${maintainCost.cause}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">解决方法：</label></td>
				<td class="width-35">
					${maintainCost.solution}
				</td>
				<td class="width-15 active"><label class="pull-right">零部件类型：</label></td>
				<td class="width-35">
					${maintainCost.partsType}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">零部件名称：</label></td>
				<td class="width-35">
					${maintainCost.partsName}
				</td>
				<td class="width-15 active"><label class="pull-right">零部件型号：</label></td>
				<td class="width-35">
					${maintainCost.partsModel}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">数量：</label></td>
				<td class="width-35">
					${maintainCost.quantity}
				</td>
				<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
				<td class="width-35">
					${maintainCost.money}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">旧部件流向：</label></td>
				<td class="width-35">
					${maintainCost.flowDirection}
				</td>
				<td class="width-15 active"><label class="pull-right">维修厂：</label></td>
				<td class="width-35">
					${maintainCost.maintenanceShop}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
				<td class="width-35">
					${maintainCost.billType}
				</td>
				<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
				<td class="width-35">
					${maintainCost.paymentMethod}
				</td>
			</tr>
			<tr>
				<td class="width-15 active"><label class="pull-right">经办人：</label></td>
				<td class="width-35">
					${maintainCost.responsiblePerson}
				</td>
				<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
				<td class="width-35">
					${maintainCost.remarks}
				</td>
			</tr>
			</tbody>
		</table>
		</div>
        <div <c:if test="${motorcadeCost.disbursementType!='加油费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">加油费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">油品型号：</label></td>
					<td class="width-35">
						${refuelingCharge.oilsTyp}
					</td>
					<td class="width-15 active"><label class="pull-right">数量（L）：</label></td>
					<td class="width-35">
						${refuelingCharge.quantity}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">单价(元)：</label></td>
					<td class="width-35">
						${refuelingCharge.price}
					</td>
					<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
					<td class="width-35">
						${refuelingCharge.money}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">加油地址：</label></td>
					<td class="width-35">
						${refuelingCharge.refuelSite}
					</td>
					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${refuelingCharge.paymentMethod}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${refuelingCharge.billType}
					</td>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						${refuelingCharge.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
        <div <c:if test="${motorcadeCost.disbursementType!='路桥费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">路桥费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">运行区间：</label></td>
					<td class="width-35">
						${ditchCost.practicalRange}
					</td>
					<td class="width-15 active"><label class="pull-right">收费站：</label></td>
					<td class="width-35">
						${ditchCost.tollStation}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
					<td class="width-35">
						${ditchCost.money}
					</td>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						${ditchCost.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
        <div <c:if test="${motorcadeCost.disbursementType!='住宿费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">住宿费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">地点：</label></td>
					<td class="width-35">
						${putupCost.site}
					</td>
					<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
					<td class="width-35">
						${putupCost.money}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${putupCost.billType}
					</td>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						${putupCost.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='防护费'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">防护费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">名称：</label></td>
					<td class="width-35">
						${protectCost.name}
					</td>
					<td class="width-15 active"><label class="pull-right">数量：</label></td>
					<td class="width-35">
						${protectCost.num}					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">单价：</label></td>
					<td class="width-35">
						${protectCost.sigle}					</td>
					<td class="width-15 active"><label class="pull-right">金额：</label></td>
					<td class="width-35">
						${protectCost.mo}					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${protectCost.pj}					</td>
					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${protectCost.zf}					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">经办人：</label></td>
					<td class="width-35">
						${protectCost.jb}					</td>
					<td class="width-15 active"><label class="pull-right">备注：</label></td>
					<td class="width-35">
						${protectCost.remarks}					</td>
				</tr>

				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='产品损耗'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">产品损耗详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">产品名称：</label></td>
					<td class="width-35">
						${lossCost.cpmc}
					</td>
					<td class="width-15 active"><label class="pull-right">总数量：</label></td>
					<td class="width-35">
						${lossCost.zsl}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">单价：</label></td>
					<td class="width-35">
						${lossCost.dj}
					</td>
					<td class="width-15 active"><label class="pull-right">总金额：</label></td>
					<td class="width-35">
						${lossCost.zje}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">损耗描述：</label></td>
					<td class="width-35">
						${lossCost.shms}
					</td>
					<td class="width-15 active"><label class="pull-right">损耗原因：</label></td>
					<td class="width-35">
						${lossCost.shyy}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">解决方法：</label></td>
					<td class="width-35">
						${lossCost.jjff}
					</td>
					<td class="width-15 active"><label class="pull-right">产品流向：</label></td>
					<td class="width-35">
						${lossCost.lx}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${lossCost.lx}
					</td>
					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${lossCost.fs}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">经办人：</label></td>
					<td class="width-35">
						${lossCost.person}
					</td>
					<td class="width-15 active"><label class="pull-right">备注：</label></td>
					<td class="width-35">
						${lossCost.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='日常保养'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">保养费详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">保养描述：</label></td>
					<td class="width-35">
						${maiCost.byms}
					</td>
					<td class="width-15 active"><label class="pull-right">原因：</label></td>
					<td class="width-35">
						${maiCost.yy}					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">保养部件名称：</label></td>
					<td class="width-35">
						${maiCost.bybj}					</td>
					<td class="width-15 active"><label class="pull-right">保养金额：</label></td>
					<td class="width-35">
						${maiCost.byje}					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">保养工厂：</label></td>
					<td class="width-35">
						${maiCost.bygc}					</td>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${maiCost.pjlx}					</td>

				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${maiCost.zffs}					</td>
					<td class="width-15 active"><label class="pull-right">经办人：</label></td>
					<td class="width-35">
						${maiCost.jbr}					</td>

				</tr>
             <tr>
				 <td class="width-15 active"><label class="pull-right">备注：</label></td>
				 <td class="width-85" colspan="3">
					 ${maiCost.remarks}					</td>
			 </tr>
				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='罚款及其它'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">罚款详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">罚款类型：</label></td>
					<td class="width-35">
						${fineCost.fklx}
					</td>
					<td class="width-15 active"><label class="pull-right">罚款金额：</label></td>
					<td class="width-35">
						${fineCost.fkje}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">原因：</label></td>
					<td class="width-35">
						${fineCost.yy}
					</td>
					<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
					<td class="width-35">
						${fineCost.zffs}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${fineCost.pjlx}
					</td>

					<td class="width-15 active"><label class="pull-right">备注：</label></td>
					<td class="width-35">
						${fineCost.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div <c:if test="${motorcadeCost.disbursementType!='其它费用'}">hidden="hidden"</c:if>>
			<div style="text-align: center ;height: 30px">其它费用详情</div>
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">地点：</label></td>
					<td class="width-35">
						${otherExpenses.site}
					</td>
					<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
					<td class="width-35">
						${otherExpenses.money}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
					<td class="width-35">
						${otherExpenses.billType}
					</td>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						${otherExpenses.remarks}
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div class="modal fade" id="addRefuelingCharge" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel1">添加加油费</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">油品型号：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="oilsTyp">
								</td>
								<td class="width-15 active"><label class="pull-right">数量（L）：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="quantity1">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">单价(元)：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="price">
								</td>
								<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="money1">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">加油地址：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="refuelSite">
								</td>
								<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
								<td class="width-35">
									<select id="paymentMethod1"  class="form-control m-b  ">
										<option value=""></option>
										<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
									<%--<select id="paymentMethod1" class="form-control ">--%>
										<%--<option value="现金">现金</option>--%>
										<%--<option value="汇款">汇款</option>--%>
										<%--<option value="支票">支票</option>--%>
										<%--<option value="汇票">汇票</option>--%>
									<%--</select>							--%>
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="billType1" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>								</td>
								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remarks1">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addRefuelingCharge()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addDitchCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel2">添加路桥费</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">运行区间：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="practicalRange">
								</td>
								<td class="width-15 active"><label class="pull-right">收费站：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="tollStation">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="money2">
								</td>
								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remarks2">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addDitchCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addPutupCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel3">添加住宿费</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">地点：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="site">
								</td>
								<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="money3">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="billType3" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>								</td>
								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remarks3">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addPutupCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addMaintainCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">添加维修费</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">故障描述：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="accident">
								</td>
								<td class="width-15 active"><label class="pull-right">原因：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="cause">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">解决方法：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="solution">
								</td>
								<td class="width-15 active"><label class="pull-right">零部件类型：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="partsType">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">零部件名称：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="partsName">
								</td>
								<td class="width-15 active"><label class="pull-right">零部件型号：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="partsModel">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">数量：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="quantity">
								</td>
								<td class="width-15 active"><label class="pull-right">金额(元)：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="money">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">旧部件流向：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="flowDirection">
								</td>
								<td class="width-15 active"><label class="pull-right">维修厂：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="maintenanceShop">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="billType" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>								</td>
								<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
								<td class="width-35">
									<select id="paymentMethod" class="form-control ">
										<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">经办人：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="responsiblePerson">
								</td>
								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remarks">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addMaintainCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addTryeCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel5">添加轮胎费用</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">品牌名称：</label></td>
								<td class="width-35">
									<input id="pp" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">型号：</label></td>
								<td class="width-35">
									<input id="xh" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">更换位置：</label></td>
								<td class="width-35">
									<input id="wz" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">数量：</label></td>
								<td class="width-35">
									<input id="sl" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">金额：</label></td>
								<td class="width-35">
									<input id="je" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">旧轮胎流向：</label></td>
								<td class="width-35">
									<input id="lx" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">故障原因：</label></td>
								<td class="width-35">
									<input id="yy" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">解决方法：</label></td>
								<td class="width-35">
									<input id="ff" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">维修厂：</label></td>
								<td class="width-35">
									<input id="wxc" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="pjlx" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>								</td>
							</tr>

							<tr>

								<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
								<td class="width-35">
									<select id="zffs"  class="form-control m-b  ">
										<option value=""></option>
										<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>								</td>
								<td class="width-15 active"><label class="pull-right">经办人：</label></td>
								<td class="width-35">
									<input id="jbr" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remark">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addTryeCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addfineCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel8">添加罚款及其它</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">罚款类型：</label></td>
								<td class="width-35">
									<input id="fklx" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">罚款金额：</label></td>
								<td class="width-35">
									<input id="fkje" htmlEscape="false"    class="form-control "/>
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">原因：</label></td>
								<td class="width-35">
									<input id="yy8" htmlEscape="false"    class="form-control "/>
								</td>
								<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
								<td class="width-35">
									<select id="zf8"  class="form-control m-b  ">
										<option value=""></option>
										<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
								</td>
							</tr>


							<tr>


								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="pj8" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
								</td>
								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="remarks8">
								</td>
							</tr>


							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addfineCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
		<div class="modal fade" id="addmaiCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel10">添加日常保养</h4>
					</div>
					<div class="modal-body">
						<table class="table table-bordered">
							<tbody>
							<tr>
								<td class="width-15 active"><label class="pull-right">保养描述：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="byms">
								</td>
								<td class="width-15 active"><label class="pull-right">原因：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="yy9">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">保养部件名称：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="bybj">
								</td>
								<td class="width-15 active"><label class="pull-right">保养金额：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="byje">
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">保养工厂：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="bygc">
								</td>
								<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
								<td class="width-35">
									<select id="pj9" class="form-control ">
										<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							<tr>
								<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
								<td class="width-35">
									<select id="zf9"  class="form-control m-b  ">
										<option value=""></option>
										<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
									</select>
								</td>
								<td class="width-15 active"><label class="pull-right">经办人：</label></td>
								<td class="width-35">
									<input type="text" class="form-control" id="jbr9">
								</td>
							</tr>
							<tr>

								<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
								<td class="width-85">
									<input type="text" class="form-control" id="remarks9">
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="addmaiCost()">保存</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal -->
		</div>
        <div class="modal fade" id="addlossCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="myModalLabel6">添加损耗</h4>
			</div>
			<div class="modal-body">
				<table class="table table-bordered">
					<tbody>
					<tr>
						<td class="width-15 active"><label class="pull-right">产品名称：</label></td>
						<td class="width-35">
							<input id="cpmc" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">数量：</label></td>
						<td class="width-35">
							<input id="zsl" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>
					<tr>

						<td class="width-15 active"><label class="pull-right">单价：</label></td>
						<td class="width-35">
							<input id="dj" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">总金额：</label></td>
						<td class="width-35">
							<input id="zje" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>
					<tr>

						<td class="width-15 active"><label class="pull-right">损耗描述：</label></td>
						<td class="width-35">
							<input id="shms" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">损耗原因：</label></td>
						<td class="width-35">
							<input id="shyy" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>
					<tr>

						<td class="width-15 active"><label class="pull-right">解决方法：</label></td>
						<td class="width-35">
							<input id="jjff" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">产品流向：</label></td>
						<td class="width-35">
							<input id="colx" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>
					<tr>


						<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
						<td class="width-35">
							<select id="lx6" class="form-control ">
								<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
									<option value="${dict.value}">${dict.label}</option>
								</c:forEach>
							</select>
						</td>
						<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
						<td class="width-35">
							<select id="fs"  class="form-control m-b  ">
								<option value=""></option>
								<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
									<option value="${dict.value}">${dict.label}</option>
								</c:forEach>
							</select>
						</td>
					</tr>

					<tr>


						<td class="width-15 active"><label class="pull-right">经办人：</label></td>
						<td class="width-35">
							<input id="person" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
						<td class="width-35">
							<input type="text" class="form-control" id="remarks6">
						</td>
					</tr>

					</tbody>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-primary" onclick="addlossCost()">保存</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
        <div class="modal fade" id="addprotectCost" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="myModalLabel7">添加防护费用</h4>
			</div>
			<div class="modal-body">
				<table class="table table-bordered">
					<tbody>
					<tr>
						<td class="width-15 active"><label class="pull-right">名称：</label></td>
						<td class="width-35">
							<input id="name" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">数量：</label></td>
						<td class="width-35">
							<input id="num" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>
					<tr>

						<td class="width-15 active"><label class="pull-right">单价：</label></td>
						<td class="width-35">
							<input id="sigle" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">金额：</label></td>
						<td class="width-35">
							<input id="mo" htmlEscape="false"    class="form-control "/>
						</td>
					</tr>


					<tr>


						<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
						<td class="width-35">
							<select id="pj" class="form-control ">
								<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
									<option value="${dict.value}">${dict.label}</option>
								</c:forEach>
							</select>
						</td>
						<td class="width-15 active"><label class="pull-right">支付方式：</label></td>
						<td class="width-35">
							<select id="zf"  class="form-control m-b  ">
								<option value=""></option>
								<c:forEach items="${fns:getDictList('pay_method_type')}" var="dict">
									<option value="${dict.value}">${dict.label}</option>
								</c:forEach>
							</select>
						</td>
					</tr>

					<tr>


						<td class="width-15 active"><label class="pull-right">经办人：</label></td>
						<td class="width-35">
							<input id="jb" htmlEscape="false"    class="form-control "/>
						</td>
						<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
						<td class="width-35">
							<input type="text" class="form-control" id="remarks7">
						</td>
					</tr>

					</tbody>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-primary" onclick="addprotectCost()">保存</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
         <div class="modal fade" id="addOtherExpenses" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="myModalLabel4">添加其它费用</h4>
			</div>
			<div class="modal-body">
				<table class="table table-bordered">
					<tbody>
					<tr>
						<td class="width-15 active"><label class="pull-right">地点：</label></td>
						<td class="width-35">
							<input type="text" class="form-control" id="site4">
						</td>
						<td class="width-15 active"><label class="pull-right">金额：</label></td>
						<td class="width-35">
							<input type="text" class="form-control" id="money4">
						</td>
					</tr>
					<tr>
						<td class="width-15 active"><label class="pull-right">票据类型：</label></td>
						<td class="width-35">
							<select id="billType4" class="form-control ">
								<c:forEach items="${fns:getDictList('invoice_type')}" var="dict">
									<option value="${dict.value}">${dict.label}</option>
								</c:forEach>
							</select>								</td>
						<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
						<td class="width-35">
							<input type="text" class="form-control" id="remarks4">
						</td>
					</tr>
					</tbody>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-primary" onclick="addprotectCost()">保存</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div></body>
</body>


</html>